package com.weijian.dal.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "商品分页显示VO")
@Data
public class ItemPageReqVO {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Schema(description = "id")
    private Long id;

    /**
     * 类目id
     */
    @Schema(description = "类目名称")
    private Long categoryId;

    /**
     * 商品名称
     */
    @Schema(description = "商品名称")
    private String name;

    /**
     * 价格（分）
     */
    @Schema(description = "价格（分）")
    private Integer price;


    /**
     * 商品图片
     */
    @Schema(description = "商品图片")
    private String image;


    /**
     * 品牌名称
     */
    @Schema(description = "品牌名称")
    private String brand;

    /**
     * 规格
     */
    @Schema(description = "规格")
    private String spec;

    /**
     * 销量
     */
    @Schema(description = "销量")
    private Integer sold;


    /**
     * 商品状态 1-正常，2-下架，3-删除
     */
    @Schema(description = "商品状态 1-正常，2-下架，3-删除")
    private Integer status;
}
